mod lexer;
mod parser;

use parser::parse;

use crate::object::Object;
use std::rc::Rc;
use std::error::Error;

pub fn compile(program: &str) -> Result<Rc<Object>, Box<dyn Error>> {
    parse(program)
}